<%@page import="com.meila.cms.entity.User"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>

<%
   User user=((User) session.getAttribute("loginUser"));
%>

<!DOCTYPE HTML>
<html lang="zh-CN">
  <head>
 
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <title>控制台-头部和左菜单（JSP导入）</title>
    <%@ include file="../common/common.jsp"%>
 
	<link href="<%=request.getContextPath() %>/resources/css/system/index/common.css" rel="stylesheet"></link>
	<link href="<%=request.getContextPath() %>/resources/css/system/index/login.css" rel="stylesheet"></link>
	<link href="<%=request.getContextPath() %>/resources/css/system/index/console.css" rel="stylesheet"></link>
 
	<script src="<%=request.getContextPath() %>/resources/js/system/index/consoleMemu.js"></script>
 
	 	
	<!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

  
    <script type="text/javascript">
       var CONTEXT_PATH = '<%=basePath %>';
    </script>
    
    <script type="text/javascript" >
   	//<![CDATA[
		//前端模板数据部分
		var data = {
			"list" :<%=request.getAttribute("jsondatas")%>
		}
  
	    function reloadData(){
	    
   		        $.ajax({
				     type: 'post',
				     url: window.location.href, 
					 dataType: 'json',
					 success: function(tempdata) {  
					 
			             data = {
							"list" :tempdata
					     }
	                     render(data);
		            }
					
				 });
	    }
	 
	 
		function each(obj, fn){
		  for (var i = 0; i < obj.length; i++) {
		     fn.call(obj[i], obj[i], i); 
		  }
		}

		
  		var bt=baidu.template;

	 	 //可以设置分隔符
		 bt.LEFT_DELIMITER='<|';
		 bt.RIGHT_DELIMITER='|>';

		//可以设置输出变量是否自动HTML转义
		bt.ESCAPE = false;
		var teamList = bt('teamList');  
		 
		function render(data){
		   $("#container").html(teamList(data));
		}
		

   
    </script>
  </head>
  
  <body>
 
  	<div class="console-headBar">
  		<div class="console-headTitle">伯坦云设计后台管理系统</div>
  		<div class="console-right">
	  		<div class="console-headUser"><i class="fa fa-user"></i><%=user==null? "":user.getPhone() %></div>
	  		<div class="console-headExit"><a class="a-black" href="<%=request.getContextPath() %>/before/logout">退出</a></div>
  		</div>
  	</div>

  	<div class="console-leftBar">
	  	<div class="console-leftBarBox">
		  	<div class="console-leftImg">
			  	<div class="console-leftImgBox">
			  		<img src="<%=request.getContextPath() %>/resources/images/leftCar.png"/>
		  		</div>
	  		</div>
	  	
		  	<div class="console-leftBlock">
		  		<div class="console-leftTr"><span>用户管理</span><i class="fa fa-angle-right"></i></div>
		  		<ul class="console-leftTr2">
		  			<li class="now"><a href="<%=request.getContextPath() %>/after/user/user_list">全部用户</a></li>
		  			<li><a href="<%=request.getContextPath() %>/after/user/approve_user_list">待认证</a></li>
		  		</ul>
		  	</div>
		  	
		  	<div class="console-leftBlock">
		  		<div class="console-leftTr"><span>图纸管理</span><i class="fa fa-angle-right"></i></div>
		  		<ul class="console-leftTr2">
		  			<li class="now"><a href="<%=request.getContextPath() %>/after/drawing/drawing_list">全部</a></li>
		  			<li><a href="<%=request.getContextPath() %>/after/drawing/drawing_list?partsType=1">内外饰</a></li>
		  			<li><a href="<%=request.getContextPath() %>/after/drawing/drawing_list?partsType=2">底盘</a></li>
		  			<li><a href="<%=request.getContextPath() %>/after/drawing/drawing_list?partsType=3">电器</a></li>
		  			<li><a href="<%=request.getContextPath() %>/after/drawing/drawing_list?partsType=4">车身</a></li>
		  			<li><a href="<%=request.getContextPath() %>/after/drawing/drawing_list?partsType=5">车身附件</a></li>
		  		</ul>
		  	</div>
  		</div>
  	</div><!-- console-leftBar -->

  	
  </body>
</html>
